package szhn.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import lombok.extern.slf4j.Slf4j;
import szhn.mapper.UserMapper;
import szhn.model.UserModel;
import szhn.service.UserService;

/**
 * 用户service
 * @author Panxinxing
 * 2020年4月13日
 *
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public UserModel getUserByUsername(String username) {
		log.info("UserService getUserByUsername方法入参username={}", username);
		return userMapper.getUserByUsername(username);
	}
	
	@Override
	public void modifyPassword(String username, String password) {
		userMapper.modifyPassword(username, password);
	}
}
